Optimal. Leaf size=34 \[ \sqrt {x-1} \sqrt {x+1}-\tan ^{-1}\left (\sqrt {x-1} \sqrt {x+1}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.00, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {101, 92, 203} \begin {gather*} \sqrt {x-1} \sqrt {x+1}-\tan ^{-1}\left (\sqrt {x-1} \sqrt {x+1}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 92
Rule 101
Rule 203
Rubi steps
\begin {align*} \int \frac {\sqrt {-1+x} \sqrt {1+x}}{x} \, dx &=\sqrt {-1+x} \sqrt {1+x}-\int \frac {1}{\sqrt {-1+x} x \sqrt {1+x}} \, dx\\ &=\sqrt {-1+x} \sqrt {1+x}-\operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {-1+x} \sqrt {1+x}\right )\\ &=\sqrt {-1+x} \sqrt {1+x}-\tan ^{-1}\left (\sqrt {-1+x} \sqrt {1+x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.13, size = 101, normalized size = 2.97 \begin {gather*} \frac {\sqrt {1-x} \left (x^2-\sqrt {x^2-1} \tan ^{-1}\left (\sqrt {x^2-1}\right )-1\right )+2 (x-1) \sqrt {x+1} \sin ^{-1}\left (\frac {\sqrt {1-x}}{\sqrt {2}}\right )}{\sqrt {-(x-1)^2} \sqrt {x+1}}-2 \tanh ^{-1}\left (\sqrt {\frac {x-1}{x+1}}\right ) \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.04, size = 48, normalized size = 1.41 \begin {gather*} -\frac {2 \sqrt {x-1}}{\sqrt {x+1} \left (\frac {x-1}{x+1}-1\right )}-2 \tan ^{-1}\left (\frac {\sqrt {x-1}}{\sqrt {x+1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.43, size = 30, normalized size = 0.88 \begin {gather*} \sqrt {x + 1} \sqrt {x - 1} - 2 \, \arctan \left (\sqrt {x + 1} \sqrt {x - 1} - x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.26, size = 32, normalized size = 0.94 \begin {gather*} \sqrt {x + 1} \sqrt {x - 1} + 2 \, \arctan \left (\frac {1}{2} \, {\left (\sqrt {x + 1} - \sqrt {x - 1}\right )}^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 35, normalized size = 1.03 \begin {gather*} \frac {\sqrt {x -1}\, \sqrt {x +1}\, \left (\arctan \left (\frac {1}{\sqrt {x^{2}-1}}\right )+\sqrt {x^{2}-1}\right )}{\sqrt {x^{2}-1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.35, size = 13, normalized size = 0.38 \begin {gather*} \sqrt {x^{2} - 1} + \arcsin \left (\frac {1}{{\left | x \right |}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.09, size = 116, normalized size = 3.41 \begin {gather*} \ln \left (\frac {{\left (\sqrt {x-1}-\mathrm {i}\right )}^2}{{\left (\sqrt {x+1}-1\right )}^2}+1\right )\,1{}\mathrm {i}-\ln \left (\frac {\sqrt {x-1}-\mathrm {i}}{\sqrt {x+1}-1}\right )\,1{}\mathrm {i}-\frac {{\left (\sqrt {x-1}-\mathrm {i}\right )}^2\,8{}\mathrm {i}}{{\left (\sqrt {x+1}-1\right )}^2\,\left (1+\frac {{\left (\sqrt {x-1}-\mathrm {i}\right )}^4}{{\left (\sqrt {x+1}-1\right )}^4}-\frac {2\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^2}{{\left (\sqrt {x+1}-1\right )}^2}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x - 1} \sqrt {x + 1}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________